import { createApp } from 'vue'
import App from './App.vue' 
import router from './router'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'//导入pinia持久化

// 引入 Element Plus 和他的的样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css' 

//ant-design-vue 和他的样式
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/reset.css';


//导入naiive
import naive from 'naive-ui'



const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersistedstate) //调用pinia的use方法
app.use(pinia)
app.use(router)
app.use(ElementPlus)
app.use(Antd);
app.use(naive)
app.mount('#app')
